package com.jswlw.controller.api.resp;

import com.jswlw.common.BaseApiResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@ApiModel(description = "API-用水信息响应对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class WaterInfoResponse extends BaseApiResponse {

    WaterInfo data;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = false)
    public static class WaterInfo {
        @ApiModelProperty(value = "设备ID", required = true, example = "12asfasfas")
        String devId;
        @ApiModelProperty(value = "本次用量", required = true, example = "12asfasfas")
        Double unitFlow;
        @ApiModelProperty(value = "已用流量", required = true, example = "12asfasfas")
        Integer usedFlow;
        @ApiModelProperty(value = "已用时间", required = true, example = "12asfasfas")
        Integer usedTime;
    }
}
